<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="__PUBLIC__/bs/css/bootstrap.min.css">
	<link rel="stylesheet" href="../Public/css/index.css"><!--首页-->
	<link rel="stylesheet" href='../Public/css/shop.css'><!--商品详情-->
	<link rel="stylesheet" href='../Public/css/person.css'><!-- 个人中心 -->
	<script src="__PUBLIC__/bs/js/bootstrap.min.js"></script>
	<script src="__PUBLIC__/bs/js/jquery.js"></script>
</head>
<body>

	<div class="container">
		<!-- 登陆注册 -->
		<div class="top" style="margin-bottom: 1px;">
			<div class="left">
				<ul class='list-inline'>
				<li><a href="<?php echo U('Index/index');?>"><img src="../Public/image/top.png" style="height:28px;" alt=""></a></li>
				</ul>
			</div>
			<div class="right">
				<ul class="list-inline">
					<?php if($_SESSION['home_username']): ?><li>欢迎<?php echo ($_SESSION['home_username']); ?></li>
						<li><a href="<?php echo U('Login/logout');?>">退出</a></li>
					<?php else: ?>
						<li>请先 <a href="<?php echo U('Login/index');?>" style='color:red;'>登陆</a></li><?php endif; ?>
					<li><a href="<?php echo U('Person/index');?>">个人中心</a></li>
					<li><a href="<?php echo U('ShopCart/index');?>">购物车</a></li>
				</ul>
			</div>
		</div>
		<!-- 登陆注册   结束-->
		
	<!-- 分类 -->
	<div class="panel panel-primary">
	  <div class="panel-heading">
	  	<div class="row">
	  		<h3 class="col-md-2 panel-title"><a href="<?php echo U('Index/index');?>">首页</a>>>商品分类</h3>
	  		<span class="col-md-9"></span>
	  		<!-- <span class="col-md-1 "><a href="" >more>></a></span> -->
	  	</div>
	  </div>
	  <div class="panel-body ">
	  		<div class="row" style="margin:15px 0;">
	  			<?php if(is_array($classShops)): $i = 0; $__LIST__ = $classShops;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$classShop): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Shop/index','','');?>/id/<?php echo ($classShop['id']); ?>">
			  			<div class="product col-md-3">
			  				<div class="img"><img src="__PUBLIC__/upload/shop/t_<?php echo ($classShop['img']); ?>" alt=""></div>
			  				<div class="desc">
			  					<span class="name"><?php echo ($classShop['name']); ?></span>
			  					<span class="price"><b><?php echo ($classShop['price']); ?></b>元</span>
			  				</div>
			  			</div>
			  		</a><?php endforeach; endif; else: echo "" ;endif; ?>
	  		</div>
	  		<p class='text-center'><?php echo ($show); ?></p>
	  </div>
	</div>
	<!-- 分类   结束-->

		<!-- 页面底部 -->
		<div class="footer">
			<div class="row">
				<ul class="list-inline">
					<li class="col-md-3"><a href="">联系方式</a></li>
					<li class="col-md-3"><a href="">公司介绍</a></li>
					<li class="col-md-3"><a href="">公司地图</a></li>
					<li class="col-md-3"><a href="">合作伙伴</a></li>
				</ul>
			</div>
			
		</div>
		<!-- 页面底部  结束 -->
	</div>
</body>
<script>

$(function(){
	// 关闭广告按钮
	$('.ad .circle').click(function(){
		$('.ad').hide(350);
	})
	$('.l_ad .circle').click(function(){
		$('.l_ad').hide(350);
	})
})


</script>
</html>